<template>
	<view class="newcar-list">
		<view class="index-list" v-if="isIndexShow">
			<view class="index-list-item" @click="activeIndexTap(item)" v-for="(item,index) in indexList" :key="item">{{item}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"newCarList",
		props:{
			isIndexShow:{
				type:Boolean,
				default: false
			},
			indexList:{
				type:Array,
				default:[],
			},
			// newCarList:{
			// 	type:Array,
			// 	default:[],
			// }
		},
		data() {
			return {
				scrollTop: 0,
				https: getApp().globalData.picturePath,
			};
		},
		methods:{
			activeIndexTap(item){
				this.$emit('fund',item)
			},
		}
	}
</script>

<style scoped lang="scss">
	.list-cell {
		display: flex;
		box-sizing: border-box;
		width: 100%;
		padding: 10px 24rpx;
		overflow: hidden;
		color: #323233;
		font-size: 14px;
		line-height: 24px;
		background-color: #fff;
	}
	.newcar-list{
		background-color: #fff;
		position: relative;
		.index-list{
			position: fixed;
			width: 40rpx;
			right: 10rpx;
			top: 130rpx;
			bottom: 0rpx;
			background-color: rgba(0,0,0,0);
			z-index: 99;
			.index-list-item{
				text-align: center;
				font-size: 28rpx;
				color: #333;
				line-height: 36rpx;
			}
		}
	}
</style>
